home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qiconset.h.z / qiconset.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  1.5 KB  |  60 lines

  1. /****************************************************************************
  2. ** $Id: qiconset.h,v 2.4 1998/07/03 00:09:34 hanord Exp $
  3. **
  4. ** Definition of QIconSet class
  5. **
  6. ** Created : 980318
  7. **
  8. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  9. **
  10. ** This file is part of Qt Free Edition, version 1.40.
  11. **
  12. ** See the file LICENSE included in the distribution for the usage
  13. ** and distribution terms, or http://www.troll.no/free-license.html.
  14. **
  15. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  16. ** your own programs or libraries.
  17. **
  18. ** Please see http://www.troll.no/pricing.html for information about 
  19. ** Qt Professional Edition, which is this same library but with a
  20. ** license which allows creation of commercial/proprietary software.
  21. **
  22. *****************************************************************************/
  23.  
  24. #ifndef QICONSET_H
  25. #define QICONSET_H
  26.  
  27. #include "qpixmap.h"
  28.  
  29.  
  30. struct QIconSetPrivate;
  31.  
  32.  
  33. class QIconSet
  34. {
  35. public:
  36.     enum Size { Automatic, Small, Large };
  37.  
  38.     enum Mode { Normal, Disabled, Active };
  39.  
  40.     QIconSet( const QPixmap &, Size = Automatic );
  41.     QIconSet( const QIconSet & );
  42.     virtual ~QIconSet();
  43.  
  44.     void reset( const QPixmap &, Size );
  45.  
  46.     void setPixmap( const QPixmap &, Size, Mode = Normal );
  47.     void setPixmap( const char *, Size, Mode = Normal );
  48.     QPixmap pixmap( Size, Mode ) const;
  49.     QPixmap pixmap() const;
  50.     bool isGenerated( Size, Mode ) const;
  51.  
  52.     QIconSet &operator=( const QIconSet & );
  53.  
  54. private:
  55.     QIconSetPrivate * d;
  56. };
  57.  
  58.  
  59. #endif
  60.